package com.itheima.account.controller;


import com.itheima.account.service.DealService;

/**
 * @Description：客户端
 */
public class ClientController {

    private DealService dealService;

    public void setDealService(DealService dealService) {
        this.dealService = dealService;
    }

    /**
     * 交易
     */
    public void doDeal(){
        System.out.println("交易之前：");
        dealService.printAccountInfo(1, 2);
        dealService.doDeal(100f, 1, 2);
        System.out.println("交易之后：");
        dealService.printAccountInfo(1, 2);
    }

}